package com.leileimann.tour.common;

import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author leileiMann
 * @date 2022/3/8 18:08
 * Page类作用为进行分页
 */

public class Page {

    /**
     *定义初始化页面显示范围
     * */
    private int pageNum = 1;
    private int pageSize = 12;

    /**PageNum减一*/
    public int pageNumSub(){return pageNum-1;}
    /**pageNum加一*/
    public int pageNumAdd(){return pageNum+1;}

    public int getPageNum() {
        return pageNum;
    }

    public void setPageNum(int pageNum) {
        this.pageNum = pageNum;
    }

    public int getPageSize() {
        return pageSize;
    }

    public void setPageSize(int pageSize) {
        this.pageSize = pageSize;
    }
}
